package com.yuanfeng.business.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ShopMemberGradeSetController
 * @Description 店铺等级
 * @Author hyq
 * @Date 2023/6/21 10:10
 * @Version 1.0
 **/
@RestController
@RequestMapping("/shop/memberGradeSet")
public class ShopMemberGradeSetController extends BaseController{

    /**
     * 查找会员折扣
     *
     * @param shopId
     * @param userId
     * @return
     */
    @GetMapping("/findMemberDiscount")
    public ResponseResult findMemberDiscount(@RequestParam("shopId") Integer shopId, @RequestParam("userId") String userId) {
        ResponseResult result = shopMemberGradeSetService.findMemberDiscount(shopId, userId);
        return result;
    }
}
